package com.yunhai.model.entity.tms;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@ApiModel(value = "StoreGroup", description = "门店组实体")
@TableName("tms_store_group")
@Data
@Accessors(chain = true)
public class StoreGroup {
    @ApiModelProperty(value = "门店组ID", example = "1001")
    @TableId(type = IdType.ASSIGN_ID)
    private Long groupId;

    @ApiModelProperty(value = "编号", required = true, example = "SG001")
    private String groupCode;

    @ApiModelProperty(value = "组名称", required = true, example = "华东旗舰店组")
    private String groupName;

    @ApiModelProperty(value = "门店数量", required = true, example = "SG001")
    private Integer groupAmount;

    @ApiModelProperty(value = "组描述", example = "负责江浙沪地区的旗舰门店")
    private String groupDescription;

    @ApiModelProperty(value = "创建人ID", hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;

    @ApiModelProperty(value = "更新人ID", hidden = true)
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间", hidden = true)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除标记", hidden = true)
    @TableLogic
    private Integer isDeleted;
}